<template>
	<image
		src="/static/login/title.png"
		:style="{ width: widthPx + 'px' }"
		mode="widthFix"
		@load="$emit('load', $event)"
	/>
</template>

<script setup>
import { ref } from 'vue';

const props = defineProps({
	width: Number,
});

const widthPx = ref(uni.upx2px(props.width || 168));
</script>
